<template>
	<view class="content">
		<view class="hellohome orderhome">
			<view><text class="icon tn-icon-dragon"></text></view>
			<view @click="setorderlist(0)" :class="[orderinddex==0?'active':'']">全部</view>
			<view @click="setorderlist(1)" :class="[orderinddex==1?'active':'']">待服务</view>
			<view @click="setorderlist(3)" :class="[orderinddex==3?'active':'']">已完成</view> 
		</view>
		<!-- 订单列表 -->
		<List ref='listd'></List>
	</view>
</template>

<script>
		import List from '@/components/list.vue'
	export default {
		components:{
			List
		},
		data() {
			return {
				orderinddex:0

			}
		},
		methods: {
			setorderlist(e){
				this.orderinddex=e
				this.$refs['listd'].overalltype = e
			}
		}
	}
</script>

<style scoped lang="scss">
	.content {
		.orderhome {
			background-color: rgba(255, 255, 255, 0.5);
			height: 45px;
			padding-right: 94px;
			left: 0;
			top: 0;
			justify-content: space-around;
			font-weight: 400;
		}
		.active{
			font-weight: bold;
		}

	}
</style>